package pl.edu.agh.soa.monitoring.cep.event;

public class TestEvent {
	private String name;
	private int value;

	public TestEvent(String name, int value) {
		super();
		this.name = name;
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	/**
	 * Constructs a <code>String</code> with all attributes
	 * in name = value format.
	 *
	 * @return a <code>String</code> representation 
	 * of this object.
	 */
	public String toString()
	{
	    final String TAB = "    ";
	    
	    String retValue = "";
	    
	    retValue = "TestEvent ( "
	        + super.toString() + TAB
	        + "name = " + this.name + TAB
	        + "value = " + this.value + TAB
	        + " )";
	
	    return retValue;
	}

}
